from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

from app import views

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'jot.views.home', name='home'),
    # url(r'^jot/', include('jot.foo.urls')),
    url(r'^t/index\.html$', views.show_index),
    url(r'^t/contact$', views.show_contact),
    url(r'^t/instruction$', views.show_instruction),

    url(r'^t/add-question$', views.add_question),
    url(r'^t/list-question$', views.list_question),
    url(r'^t/show-question$', views.show_question),
    url(r'^t/add-solution$', views.add_solution),

    url(r'^t/UpdateQuestion$', views.update_question),
    url(r'^t/UpdateTestcase$', views.update_testcase),
    url(r'^t/UpdateSolution$', views.update_solution),
    url(r'^t/RunSolution$', views.run_solution),
    url(r'^.*$', views.lost),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
